<template>
  <div class="category-single">
    <h2 class="category-title">2222{{ category.categoryName }}</h2>
    
    <div class="category-content" v-if="category.content" v-html="category.content"></div>
    
    <div v-else class="empty-content">
      <p>暂无内容</p>
    </div>
  </div>
</template>

<script>
export default {
  name: 'CategorySingle',
  props: {
    category: {
      type: Object,
      required: true
    }
  }
}
</script>

<style scoped>
.category-title {
  font-size: 24px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 1px solid #eee;
}

.category-content {
  line-height: 1.8;
}

.empty-content {
  text-align: center;
  padding: 50px 0;
  color: #999;
}
</style>